<template>
  <div>
    <h1>Detail</h1>
    <p>Id: {{ $route.params.id }}</p>
    <p>Name: {{ $route.params.name }}</p>
  </div>
</template>

<script>
export default {
  created() {
    console.log(this.$route.params);
  },
};
</script>
